package com.noyes4j.ota.domain;


import com.noyes4j.common.annotation.Excel;
import com.noyes4j.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 升级计划对象 sys_update_plan
 *
 * @author noyes4j
 * @date 2021-01-29
 */
public class SysUpdatePlan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 升级计划ID */
    private Long id;

    /** 产品ID */
    @Excel(name = "产品ID")
    private Long proId;

    /** 旧版本号 */
    @Excel(name = "旧版本号")
    private String oldVresion;

    /** 新版本号 */
    @Excel(name = "新版本号")
    private String newVresion;

    /** 规则 */
    @Excel(name = "规则")
    private String rule;

    /** 状态（0升级 1未升级） */
    @Excel(name = "状态", readConverterExp = "0=升级,1=未升级")
    private String visible;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setProId(Long proId)
    {
        this.proId = proId;
    }

    public Long getProId()
    {
        return proId;
    }
    public void setOldVresion(String oldVresion)
    {
        this.oldVresion = oldVresion;
    }

    public String getOldVresion()
    {
        return oldVresion;
    }
    public void setNewVresion(String newVresion)
    {
        this.newVresion = newVresion;
    }

    public String getNewVresion()
    {
        return newVresion;
    }
    public void setRule(String rule)
    {
        this.rule = rule;
    }

    public String getRule()
    {
        return rule;
    }
    public void setVisible(String visible)
    {
        this.visible = visible;
    }

    public String getVisible()
    {
        return visible;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("proId", getProId())
                .append("oldVresion", getOldVresion())
                .append("newVresion", getNewVresion())
                .append("rule", getRule())
                .append("visible", getVisible())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}